<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>login</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        #wrap {
            height: 600px;
            width: auto;

            background-repeat: no-repeat;
            background-position: left;
            position: relative;

        }
        #head {
            height: 80px;
            width: 100%;
            /*background-color: #66CCCC;*/
            text-align: left;
            position: relative;
        }
        .img1{
            width: 200px;/* 插入图片更改大小 width 和 height */
            height: auto;
            position: center;
            display: inline;
            /* margin-top: 5px;  /* 插入图片更改位置 可以用margin 或padding  盒模型
             margin-left: 50px; /* 插入当图片也是一个盒子 */
        }
        #foot {
            width: 100%;
            height: 200px;
            background-color: #CC9933;
            position: relative;
        }
        #wrap .logGet {
            height: 450px;
            width: 368px;
            position: absolute;
            background-color:hsla(0,0%,100%,.9);
            right: 15%;
            top: 0%;
        }
        .logC button {
            width: 100%;
            height: 45px;
            background-color: #ee7700;
            border: none;
            color: white;
            font-size: 18px;
        }
        .logGet .logD.logDtip .p1 {
            display: inline-block;
            font-size: 28px;
            margin-top: 10px;
            width: 86%;
        }
        #wrap .logGet .logD.logDtip {
            width: 86%;
            border-bottom: 1px solid #ee7700;
            margin-bottom: 60px;
            margin-top: 0px;
            margin-right: auto;
            margin-left: auto;
        }
        .logGet .lgD img {
            position: absolute;
            top: 12px;
            left: 8px;
        }
        .logGet .lgD input {
            width: 100%;
            height: 42px;
            text-indent: 2.5rem;
        }
        #wrap .logGet .lgD {
            width: 86%;
            position: relative;
            margin-bottom: 30px;
            margin-top: 30px;
            margin-right: auto;
            margin-left: auto;
        }
        #wrap .logGet .logC {
            width: 86%;
            /*margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;*/
            position: relative;
            margin-bottom: 30px;
            margin-top: 30px;
            margin-right: auto;
            margin-left: auto;
        }

        .copyright {
            font-family: "宋体";
            color: #FFFFFF;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);  /* 使用css3的transform来实现 */
            height: 60px;
            width: 40%;
            text-align:center;
        }


        #foot .copyright .img {
            width: 100%;
            height: 24px;
            position: relative;
        }

        #foot .copyright p {
            height: 24px;
            width: 100%;
        }
        a{
            text-decoration:none;  /*清除下划线  */
            font-family: "微软雅黑";/*设置字体种类*/
            color: black;/*设置字体颜色*/
            font-size: 20px;/*设置字体大小*/

        }

    </style>
</head>

<body>
<div style="width: 800px;">

    <img  width="500px" height="120px" src="${pageContext.request.contextPath }/websources/bt.png" />

</div >

<div class="wrap" id="wrap">
    <form action="/user/login" method="post">
        <div><img src="${pageContext.request.contextPath }/websources/fm.jpg" /></div>
        <div style="background-color: silver" class="logGet">
            <!-- 头部提示信息 -->
            <div class="logD logDtip">
                <p class="p1">密码登录</p>
            </div>
            <!-- 输入框 -->
            <div class="lgD">
                <img src="${pageContext.request.contextPath }/websources/logName.png" width="20" height="20" alt=""/>
                <input type="text" id="id" name="id" placeholder="输入用户名" />
            </div>
            <div class="lgD">
                <img src="${pageContext.request.contextPath }/websources/logPwd.png" width="20" height="20" alt=""/>
                <input type="password" id="password" name="password" placeholder="输入用户密码" />
            </div>
            <div class="logC">
                <button type="submit">登 录</button></div>
            <span style="width:120px; display:inline-block"></span>
            <a href="${pageContext.request.contextPath }/zhuce.jsp" target="_self" >免费注册</a>
            <div style="margin-top: 3%">
                <c:if test="${ not empty msg }">
                    <h1 style="text-align: center ; color: red ; font-weight: bolder">${msg}</h1>
                </c:if>
            </div>
        </div>
    </form>

</div>

<div class="footer" id="foot">
    <div class="copyright">
        <p>Copyright © 2020 sweet.com Inc. All Rights Reserved.</p>
        <div class="img">
            <span>联系邮箱：2421389522@qq.com</span>
        </div>

        <div class="img">
            <span>联系地址：东华理工大学</span>
        </div>

        <div class="img">
            <span>联系电话：15770678162</span>
        </div>


    </div>

</div>


</body>
</html>
